package com.example.s06.entity;

import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@Component
public class Customer implements Role{
    private String ucode;
    private String  upassword;
    private  String uname;


    @Override
    public String getRole() {
        return "顾客";

    }

    @Override
    public String getcode() {
        return ucode;
    }

    @Override
    public String getPassword() {
        return upassword;
    }

    @Override
    public String getName() {
        return uname;
    }

    public Customer() {
        this.ucode = ucode;
        this.upassword = upassword;
        this.uname = uname;
    }
}
